<template>
  <div class="category">
    <h3>{{ title }}</h3>
    <slot name="center">当使用者没有传递时，我会出现</slot>
    <slot name="bottom">当使用者没有传递时，我会出现</slot>

  </div>
</template>

<script>
export default {
  name: "Category",
  props: ["listData", "title"],
};
</script>

<style>
.category {
  background-color: lightcyan;
  width: 200px;
  height: 300px;
}
h3 {
  text-align: center;
  background-color: aquamarine;
}
img {
  width: 100%;
}
</style>